package com.gshrms.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gshrms.common.core.domain.entity.SysUser;
import com.gshrms.system.domain.SysSubAdmin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 子管理员管理组 Mapper 接口
 * </p>
 *
 * @author laoyang
 * @since 2025-03-20
 */
@Mapper
public interface SysSubAdminMapper extends BaseMapper<SysSubAdmin> {

    /**
     * 根据管理组Id查询有哪些用户
     * @param gmId
     * @return
     */
    List<SysUser> selectUserListBySubAdmin(@Param("gmId") Long gmId);
}
